{% extends "base.html" %}

{% block title %}
新闻管理
{% endblock %}

{% block content %}
    <!-- Page Content -->
    <div id="page-wrapper">
        <div class="container-fluid">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">
                        {{ dep }}人员管理
                    </h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="row">
                        {% for d in department_list %}
                        <a href="/p_list/{{ d }}/1/" class="btn btn-primary">{{ d }}</a>
                        {% endfor %}
                        <table class="table">
                            <thead>
                                <tr>
                                    <th>id</th>
                                    <th>姓名</th>
                                    <th>性别</th>
                                    <th>年龄</th>
                                    <th>门派</th>
                                    <th>职位</th>
                                </tr>
                            </thead>
                            <tbody>
                                {% for p in person_list %}
                                    <tr>
                                        <td>{{ p.id }}</td>
                                        <td>{{ p.name }}</td>
                                        <td>{{ p.gender }}</td>
                                        <td>{{ p.age }}</td>
                                        <td>{{ p.department }}</td>
                                        <td>{{ p.position }}</td>
                                    </tr>
                                {% endfor %}
                            </tbody>
                        </table>
                        {#                    添加内容结束#}
                        <ul class="pagination pull-right">
                            <li><a href="/p_list/{{ dep }}/1/">1</a></li>
                            <li><a href="/p_list/{{ dep }}/2/">2</a></li>
                            <li><a href="/p_list/{{ dep }}/3/">3</a></li>
                            <li><a href="/p_list/{{ dep }}/4/">4</a></li>
                            <li><a href="/p_list/{{ dep }}/5/">5</a></li>
                        </ul>
                    </div>
                </div>
                <!-- /.col-lg-12 -->
            </div>
        </div>
        <!-- /.container-fluid -->
    </div>
    <!-- /#page-wrapper -->
{% endblock %}

